package com.ruoyi.common.utils.kingwow;

public class ConnParams {

    private String dbHost;
    private int dbPort=2880;
    private String dbName="kingwow"; //default kingwow
    private String tenantName;
    private String jdbcUser="admin";
    private String jdbcPass;
    private int connectTimeout = 1;
    private String testSql = "select 1";

    public ConnParams(){}

    public ConnParams(String dbHost, int dbPort, String jdbcPass) {
        this.dbHost = dbHost;
        this.dbPort = dbPort;
        this.jdbcPass = jdbcPass;
    }

    public ConnParams(String dbHost, int dbPort, String dbName, String tenantName, String jdbcUser, String jdbcPass) {
        this.dbHost = dbHost;
        this.dbPort = dbPort;
        this.dbName = dbName;
        this.tenantName = tenantName;
        this.jdbcUser = jdbcUser;
        this.jdbcPass = jdbcPass;
    }

    public ConnParams(String dbHost, int dbPort, String dbName, String tenantName, String jdbcUser, String jdbcPass, int connectTimeout, String testSql) {
        this.dbHost = dbHost;
        this.dbPort = dbPort;
        this.dbName = dbName;
        this.tenantName = tenantName;
        this.jdbcUser = jdbcUser;
        this.jdbcPass = jdbcPass;
        this.connectTimeout = connectTimeout;
        this.testSql = testSql;
    }

    public String getDbHost() {
        return dbHost;
    }

    public void setDbHost(String dbHost) {
        this.dbHost = dbHost;
    }

    public int getDbPort() {
        return dbPort;
    }

    public void setDbPort(int dbPort) {
        this.dbPort = dbPort;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getJdbcUser() {
        return jdbcUser;
    }

    public void setJdbcUser(String jdbcUser) {
        this.jdbcUser = jdbcUser;
    }

    public String getJdbcPass() {
        return jdbcPass;
    }

    public void setJdbcPass(String jdbcPass) {
        this.jdbcPass = jdbcPass;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public String getTestSql() {
        return testSql;
    }

    public void setTestSql(String testSql) {
        this.testSql = testSql;
    }
}
